Contents | Index | < Browse | Browse >
LETTERvsprintfULETTER
Prints formatted data of a varying-length argument list into a string.
Overview
#include <stdio.h>
r = vsprintf(s,format,vl);
int r;
char *s;
const char *format;
va_list vl;
Portability
ANSI
Description
Prints formatted data into the string "s". The output format template describing the
format of the output must be followed by the argument list "vl".
"s"'s size must be large enough to contain the output including the terminating
zero byte.
Before usage "vl" must be initialized using va_start. After using
you must finish using it using va_end.
Returns
The number of characters written or a negative value if an error occured.
See also
vprintf , sprintf